const Mock = require('mockjs');
const login = require('./login');
const menus = require('./menus');
const studentInfo = require('./studentInfo')
const addStudent = require('./addStudent')
const delStudent = require('./delStudent')


const mocks = [login, menus, studentInfo,addStudent,delStudent];

mocks.forEach((item) => {
  Mock.mock(new RegExp(item.path), item.type, (ops) => {
    return item.func(ops);
  })
});

